﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using System.Threading.Tasks;

namespace CashAgent
{
    [ServiceContract(Name = "RestfulService")]
    interface IRestfulService
    {
        /// <summary>
        /// 开台点菜加菜结账
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        [WebInvoke(
          UriTemplate = Routing.GetClientRoute
         , ResponseFormat = WebMessageFormat.Json
         , RequestFormat = WebMessageFormat.Json
         , Method = "POST"
         )]
        string SubmitOrder();
    }

    public static class Routing
    {
        public const string GetClientRoute = "/Client";
    }
}
